<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ page import="com.bluesky.light.staff.*" %>
<%
	request.setCharacterEncoding("UTF-8");
	String path = request.getContextPath();
	String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<%
	// check if the user is login
	Staff s = (Staff)session.getAttribute("staff");
	if (s == null) {
		response.sendRedirect("index.jsp");
	}
	String name = s.getName();
%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    <base href="<%=basePath%>">
    
    <title>light</title>
    
	<meta http-equiv="pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta http-equiv="expires" content="0">    
	<meta http-equiv="keywords" content="keyword1,keyword2,keyword3">
	<meta http-equiv="description" content="This is my page">
	<!--
	<link rel="stylesheet" type="text/css" href="styles.css">
	-->
	<link href="css/main.css" rel="stylesheet" type="text/css" />
	

  </head>
  
  <body>
	<!-- header -->
	<div id="header">
		<div id="logo"><img src="images/logo_small2.png"/></div>
	</div>
	<!-- // header -->
	<!-- nav -->
	<div id="nav">
	</div>
	<!-- // nav -->
	<!-- container -->
	<div id="container">
		<!-- contents -->
		<div id="contents">
			<div id="regist_form">
	        	<form>
	            	<h2>Change Success!</h2>
	            	<span id="delay">3</span> seconds to back to home page, or click
	            	<a href="<%=basePath%>">here</a>
	            	by yourself
	            	<script type="text/javascript">
	            		var delay=3;
	            		function goBack() {
	            			document.getElementById("delay").innerHTML=delay;
	            			delay--;
	            			if (delay==0) {
	            				document.location.href='<%=basePath%>staff/home.jsp';
	            			} else {
	            				setTimeout(goBack, 1000);
	            			}
	            		}
	            		goBack();
	            	</script>
	            </form>
	        </div>
	    </div>
	    <!-- // contents -->
	</div>
	<!-- // container -->
	<div id="footer">
		<div id="bs_stdio">
	    	©2011-2011 www.bluesky.com.mo All Rights Reserved<br/>
	    	<img src="images/bluesky_logo.png" />
	    </div>
	</div>
  </body>
</html>
